package com.example.minesweepers;

import android.graphics.Typeface;
import android.widget.LinearLayout.LayoutParams;
import android.widget.ToggleButton;

public class ToggleButtonSetup {
	
	public static void setupButton(ToggleButton onToggleButton, int drawableID, int screenWidth, int screenHeight) {
		onToggleButton.setBackgroundResource(drawableID);
		onToggleButton.setLayoutParams(new LayoutParams(screenWidth, screenHeight));
		onToggleButton.setPadding(0, 0, 0, 0);
		onToggleButton.setFocusable(false);
		onToggleButton.setFocusableInTouchMode(false);
		onToggleButton.setClickable(true);
		onToggleButton.setTypeface(null, Typeface.BOLD_ITALIC);
		onToggleButton.setTextOn("");
		onToggleButton.setTextOff("");
		onToggleButton.setText("");
	}

}
